<template>
  <transition name="fade">
    <div class="toast-wrap">
      {{ message }}
    </div>
  </transition>
</template>

<script setup>
const props = defineProps({
  message: {
    type: String,
    default: ""
  }
})
</script>

<style lang="less" scoped>
.toast-wrap {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 10px;
  background-color: #000;
  padding: 20px 30px;
  font-size: 40px;
  color: #fff;
  text-align: center;
  z-index: 99;
}
</style>
